<script setup>
let a = 100;

let method=()=>{
    return "这里是一个方法"
}

let str = "<h1><em>斜体还是加粗</em></h1>"
</script>

<template>
  <div>
    <span v-text="a>10?'大于10':'小于10'"></span>
    <span v-text="method()"></span>
    <hr>
    <span v-html="str"></span>
    <span v-text="str"></span>
  </div>
</template>

<style scoped>

</style>
